<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"my-Data.txt\"");
print_r( $_POST['id']);
echo "Data will be here";
?>